﻿using System;


namespace TopBuilds.Restaurant.Data
{
    public class Department
    {
        #region 属性
        private  int  _id;
        private string _name;
        #endregion

        #region 构造
        public Department()
        {
            _name    = null;
        }

        public Department(string name)
        {
            _name    = name;
        }
        #endregion

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }


        public override string ToString()
        {
            return Name;
        }

    }
}
